package com.sdy.kzyy.biz.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sdy.common.model.BizException;
import com.sdy.kzyy.biz.dto.StoreManageDTO;
import com.sdy.kzyy.biz.model.Store;
import com.sdy.kzyy.biz.dto.StoreDTO;
import com.sdy.mvc.service.BaseService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zzq
 * @since 2020-03-04
 */
public interface StoreService extends BaseService<Store> {
    List<StoreDTO> getAreaPage(String areaCode , Page<StoreDTO> page);
    Integer getAreaPageSize(String areaCode);
    List<StoreDTO> getNamePage(String name , Page<StoreDTO> page);
    Integer getNamePageSize(String name);
/*    boolean updateExtractTime();*/

    /**
     * pc药店列表页
     * @param name
     * @param page
     * @return
     */
    List<StoreManageDTO> getStoreManagePage(Page page, String name, String storeCode);

    /**
     * 新增店铺数据
     * @param storeManageDTO
     * @return
     */
    Boolean saveStorManage(StoreManageDTO storeManageDTO) throws BizException;

    /**
     * 修改获取数据
     * @param id
     * @return
     */
    StoreManageDTO getStoreManageOne(Integer id) throws BizException;

    /**
     * 修改店铺数据
     * @param storeManageDTO
     * @return
     */
    Boolean updateStorManage(StoreManageDTO storeManageDTO) throws BizException;

    /**
     * 隐藏药店数据/取消人员扫码权限
     * @param id
     * @return
     */
    Boolean delStorManage(Integer id, Integer state) throws BizException;
}
